<#-- 资源管理维护页面 -->
<#import layoutTemplet as layout>
<#assign contextPath=request.getContextPath()>
<#-- 调用布局指令 -->
<@layout.html>
<#escape x as x?html>

<#-- 导航区 -->
<div class="breadcrumbs ace-save-state breadcrumbs-fixed" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <span class="grey">权限管理</span>
        </li>
        <li class="active">
            <span class="grey">资源信息</span>
        </li>
    </ul>
    <div class="nav-search" id="nav-search">
        <button class="mfui-btn mfui-btn-primary mfui-btn-sm" id="headGoBackBtn">　返回　</button>
    </div>
</div>

<#-- 新增表单 -->
<div class="page-content">
    <div class="page-header">
        <h1>
            资源信息
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                修改
            </small>
        </h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <form id="editForm" class="form-horizontal">
                <input type="hidden" id="uniqueNo" name="uniqueNo" value="${uniqueNo!}"/>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="appTypeCode">
                        <span class="red">*</span> 所属应用
                    </label>
                    <div class="col-sm-3">
                        <select class="form-select2" id="appTypeCode" name="appTypeCode" data-rule="required" disabled="disabled">
                            <option value="">请选择</option>
                            <#list AppTypeEnum as item>
                                <option value="${item.index}">${item.name}</option>
                            </#list>
                        </select>
                    </div>
                    <label class="col-sm-2 control-label no-padding-right" for="parentResourceCode">
                        父级资源编码
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="parentResourceCode" name="parentResourceCode" maxlength="50" disabled="disabled"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="resourceCode">
                        <span class="red">*</span> 资源编码
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="resourceCode" name="resourceCode" data-rule="required" maxlength="50" disabled="disabled"/>
                    </div>
                    <label class="col-sm-2 control-label no-padding-right" for="resourceName">
                        <span class="red">*</span> 资源名称
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="resourceName" name="resourceName" data-rule="required" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="resourceTypeCode">
                        <span class="red">*</span> 资源类型
                    </label>
                    <div class="col-sm-3">
                        <select class="form-select2" id="resourceTypeCode" name="resourceTypeCode" data-rule="required">
                            <option value="">请选择</option>
                            <#list ResourceTypeEnum as item>
                                <option value="${item.index}">${item.name}</option>
                            </#list>
                        </select>
                    </div>
                    <label class="col-sm-2 control-label no-padding-right" for="resourceSort">
                        <span class="red">*</span> 资源排序
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="resourceSort" name="resourceSort" data-rule="required, digits" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label no-padding-right" for="resourceUrl">
                        资源URL
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="resourceUrl" name="resourceUrl" maxlength="50"/>
                    </div>
                    <label class="col-sm-2 control-label no-padding-right" for="resourceIcon">
                        资源图标
                    </label>
                    <div class="col-sm-3">
                        <input type="text" class="form-control col-sm-12" id="resourceIcon" name="resourceIcon" maxlength="50"/>
                    </div>
                </div>
                <div class="form-group">
                    <hr class="hr hr-32"/>
                    <div class="center">
                        <button type="button" class="mfui-btn mfui-btn-normal mfui-btn-lg" id="saveBtn">
                            保存
                        </button>
                        <button type="button" class="mfui-btn mfui-btn-primary mfui-btn-lg" id="goBackBtn">
                            返回
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="${contextPath}/public/js/auth/resource/resource_info_edit.js"></script>
</#escape>
</@layout.html>